package com.yzg.service;

import com.yzg.pojo.Role;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
* @Author: decade
* @Description: ${description}
* @Date: 2021/1/14 20:49
**/
public interface RoleService extends IService<Role>{

    //根据用户id获取角色数据
    Map<String, Object> findRoleByUserId(String userId);
    //根据用户分配角色
    void saveUserRoleRealtionShip(String userId, String[] roleIds);
}
